Package i2p :: Module samclasses :: Class BaseSession
[show private | hide private]
[frames | no frames]

Class BaseSession

Known Subclasses:
DatagramSession, RawSession, StreamSession

Base session, from which StreamSession, DatagramSession, and RawSession are derived.
Method Summary
  __init__(self, addr)
  _encode_kwargs(self, **kwargs)
Internal command, encode extra kwargs for passing to SESSION CREATE.
  _hello(self)
Internal command, handshake with SAM terminal.
  _namelookup(self, name)
Internal command, does a NAMING LOOKUP query.
  _on_HELLO_REPLY(self, **kwargs)
Internal command, got HELLO REPLY.
  _on_NAMING_REPLY(self, **kwargs)
Internal command, got NAMING REPLY.
  _on_SESSION_STATUS(self, **kwargs)
Internal command, got SESSION STATUS.
  _set_properties(self)
Internal command, call at end of __init__ to set up properties.
  close(self)
Close the session.

Method Details

_encode_kwargs(self, **kwargs)

Internal command, encode extra kwargs for passing to SESSION CREATE.

_hello(self)

Internal command, handshake with SAM terminal.

_namelookup(self, name)

Internal command, does a NAMING LOOKUP query.

_on_HELLO_REPLY(self, **kwargs)

Internal command, got HELLO REPLY.

_on_NAMING_REPLY(self, **kwargs)

Internal command, got NAMING REPLY.

_on_SESSION_STATUS(self, **kwargs)

Internal command, got SESSION STATUS.

_set_properties(self)

Internal command, call at end of __init__ to set up properties.

close(self)

Close the session.

Generated by Epydoc 2.1 on Mon Aug 02 01:07:41 2004 http://epydoc.sf.net